package com.an.cloud.service;

import com.an.cloud.entities.Pay;

import java.util.List;

/**
 * 支付服务
 *
 * @author: ANHE
 * @createDate: 2024/03/13
 * @version: 1.0.0
 */
public interface PayService {

    /**
     * 添加
     *
     * @param pay 支付
     * @return int
     * @author: ANHE
     * @createDate: 2024/03/13
     * @version: 1.0.0
     */
    int add(Pay pay);

    /**
     * 删除
     *
     * @param id id
     * @return int
     * @author: ANHE
     * @createDate: 2024/03/13
     * @version: 1.0.0
     */
    int delete(Integer id);

    /**
     * 更新
     *
     * @param pay 支付
     * @return int
     * @author: ANHE
     * @createDate: 2024/03/13
     * @version: 1.0.0
     */
    int update(Pay pay);

    /**
     * 按身份证领取
     *
     * @param id id
     * @return {@link Pay }
     * @author: ANHE
     * @createDate: 2024/03/13
     * @version: 1.0.0
     */
    Pay getById(Integer id);

    /**
     * 得到所有
     *
     * @return {@link List }<{@link Pay }>
     * @author: ANHE
     * @createDate: 2024/03/13
     * @version: 1.0.0
     */
    List<Pay> getAll();
}
